using System;
using System.Collections.Generic;
using System.Text;

namespace Colorprj.Purchase
{
    class PurchaseHeadEntity
    {

        private int _PurHeadId = 0;
        public int PurHeadId
        {
            get
            {
                return _PurHeadId;
            }
            set
            {
                _PurHeadId = value;
            }
        }
        private int _PartyId = 0;
        public int PartyId
        {
            get
            {
                return _PartyId;
            }
            set
            {
                if (value == 0) { throw new Exception("Please select Party "); } 
                _PartyId = value;
            }
        }
        private string _PurNo = "";
        public string PurNo
        {
            get
            {
                return _PurNo;
            }
            set
            {
                if (string.IsNullOrEmpty(value.Trim()) ) { throw new Exception("Please Input Purchase No. "); } 
                _PurNo = value;
            }
        }

        private DateTime  _PurDate ;
        public DateTime PurDate
        {
            get
            {
                return _PurDate;
            }
            set
            {
                _PurDate = value;
            }
        }

         private Double  _CenVat ;
        public Double  CenVat
        {
            get
            {
                return _CenVat;
            }
            set
            {
                _CenVat = value;
            }
        }


        private Double  _Ecess ;
        public Double  Ecess
        {
            get
            {
                return _Ecess;
            }
            set
            {
                _Ecess = value;
            }
        }

     private Double  _SHEcess ;
        public Double  SHEcess
        {
            get
            {
                return _SHEcess;
            }
            set
            {
                _SHEcess = value;
            }
        }
        
        // private Double  _SHEcess ;
        //public Double  SHEcess
        //{
        //    get
        //    {
        //        return _SHEcess;
        //    }
        //    set
        //    {
        //        _SHEcess = value;
        //    }
        //}
         private Double  _Total ;
        public Double  Total
        {
            get
            {
                return _Total;
            }
            set
            {
                _Total = value;
            }
        }
      private Double  _STotal ;
        public Double  STotal
        {
            get
            {
                return _STotal;
            }
            set
            {
                _STotal = value;
            }
        }
     private Double  _GTotal ;
        public Double  GTotal
        {
            get
            {
                return _GTotal;
            }
            set
            {
                _GTotal = value;
            }
        }
        private Double  _CST ;
        public Double  CST
        {
            get
            {
                return _CST;
            }
            set
            {
                _CST = value;
            }
        }
        private Double  _Scharge ;
        public Double  Scharge
        {
            get
            {
                return _Scharge;
            }
            set
            {
                _Scharge = value;
            }
        }
             private Double  _Freight ;
        public Double  Freight
        {
            get
            {
                return _Freight;
            }
            set
            {
                _Freight = value;
            }
        }
        private List<PurDetailEntity> _PurDetailList ;
        public List<PurDetailEntity> PurDetailList
        {
            get
            {
                return _PurDetailList;
            }
            set
            {
                _PurDetailList = value;
            }
        }
    }
}
